import {
    createRouter,
    createWebHistory,
} from "vue-router";

// 路由类型:RouteRecordRaw
const routes = [{
        path: "/",
        meta: {
            title: 'Xpert',
            keepAlive: true,
        },
        component: () => import("@/view/home/xpertHome.vue"),
    }, {
        path: "/Search",
        meta: {
            title: 'Search',
            keepAlive: true,
        },
        component: () => import("@/view/home/homeSearch/index.vue"),
    }, {
        path: "/Industry",
        meta: {
            title: 'Industry',
            keepAlive: true,
        },
        component: () => import("@/view/home/homeIndustry/index.vue"),
    }, {
        path: "/PersonalHome",
        meta: {
            title: 'PersonalHome',
            keepAlive: true,
        },
        component: () => import("@/view/home/userinfoHome/index.vue"),
    }, {
        path: "/CustomizeOrder",
        meta: {
            title: 'CustomizeOrder',
            keepAlive: true,
        },
        component: () => import("@/view/home/customizeOrder/index.vue"),
    }, {
        path: "/AccountSetting",
        meta: {
            title: 'AccountSetting',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/accountSetting/index.vue"),
    }, {
        path: "/MyProfile",
        meta: {
            title: 'MyProfile',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/myProfile/index.vue"),
    }, {
        path: "/Gigs",
        meta: {
            title: 'Gigs',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/gigs/index.vue"),
    }, {
        path: "/PayoutMethod",
        meta: {
            title: 'PayoutMethod',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/payoutMethod/index.vue"),
    }, {
        path: "/Notifications",
        meta: {
            title: 'Notifications',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/notifications/index.vue"),
    }, {
        path: "/NotificationsSetting",
        meta: {
            title: 'NotificationsSetting',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/notifications/notificationsSetting/index.vue"),
    }, {
        path: "/Verify",
        meta: {
            title: 'Verify',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/verify/index.vue"),
    }, {
        path: "/VerifyResults",
        meta: {
            title: 'VerifyResults',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/verify/verifyResults.vue"),
    },
    {
        path: "/HelpSupport",
        meta: {
            title: 'HelpSupport',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/index.vue"),
    },
    {
        path: "/OrderManagement",
        meta: {
            title: 'OrderManagement',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/orderManagement.vue"),
    },
    {
        path: "/System",
        meta: {
            title: 'System',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/system.vue"),
    },
    {
        path: "/BlogFAQ",
        meta: {
            title: 'BlogFAQ',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/blogFAQ.vue"),
    },
    {
        path: "/BlogFAQS",
        meta: {
            title: 'BlogFAQS',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/blogFAQS.vue"),
    },
    {
        path: "/Details",
        meta: {
            title: 'Details',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/details.vue"),
    },
    {
        path: "/Detail",
        meta: {
            title: 'Detail',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/detail.vue")
    },
    {
        path: "/DeactiveAccount",
        meta: {
            title: 'DeactiveAccount',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/deactiveAccount/index.vue"),
    },
    {
        path: "/CreateGig",
        meta: {
            title: 'CreateGig',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/createGig/index.vue"),
    },
    {
        path: "/Profile",
        meta: {
            title: 'Profile',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/profile/index.vue"),
    },
    {
        path: "/Icome",
        meta: {
            title: 'Icome',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/icome/index.vue"),
    },
    {
        path: "/Request",
        meta: {
            title: 'Request',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/request/index.vue"),
    },
    {
        path: "/Request/RequestCommunity",
        meta: {
            title: 'RequestCommunity',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/requestCommunity/index.vue"),
    },
    {
        path: "/Request/RequestDetils",
        meta: {
            title: 'RequestDetils',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/requestDetils/index.vue"),
    },
    {
        path: "/Request/RequestApply",
        meta: {
            title: 'RequestApply',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/requestApply/index.vue"),
    },
    {
        path: "/MyList",
        meta: {
            title: 'MyList',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/myList/index.vue"),
    },
    {
        path: "/MyList/MyListView",
        meta: {
            title: 'MyListView',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/myListView/index.vue"),
    },
    {
        path: "/MyList/Business",
        meta: {
            title: 'Business',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/business/index.vue"),
    },
    {
        path: "/MyOrder",
        meta: {
            title: 'MyOrder',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/myOrder/index.vue"),
    },
    {
        path: "/MyOrder/MyOrderDetails",
        meta: {
            title: 'MyOrderDetails',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/myOrderDetails/index.vue"),
    },
    // 买家
    {
        path: "/BuyAccountSetting",
        meta: {
            title: 'BuyAccountSetting',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/accountSetting/index.vue"),
    },
    {
        path: "/UseMyProfile",
        meta: {
            title: 'UseMyProfile',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/myProfile/index.vue"),
    },
    {
        path: "/UseMyProfileProfile",
        meta: {
            title: 'UseMyProfileProfile',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/profile/index.vue"),
    },
    {
        path: "/UsePersonalHome",
        meta: {
            title: 'UsePersonalHome',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/userinfoHome/index.vue"),
    },
    {
        path: "/UseNotifications",
        meta: {
            title: 'UseNotifications',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/notifications/index.vue"),
    },
    {
        path: "/UseNotificationsSetting",
        meta: {
            title: 'UseNotificationsSetting',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/notifications/notificationsSetting/index.vue"),
    },
    {
        path: "/UseVerify",
        meta: {
            title: 'UseVerify',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/verify/index.vue"),
    },
    {
        path: "/UseHelpSupport",
        meta: {
            title: 'UseHelpSupport',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/helpSupport/index.vue"),
    },
    {
        path: "/UseOrderManagement",
        meta: {
            title: 'UseOrderManagement',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/helpSupport/orderManagement.vue"),
    },
    {
        path: "/UsePayment",
        meta: {
            title: 'UsePayment',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/payment/index.vue"),
    },
    {
        path: "/UseRequest",
        meta: {
            title: 'UseRequest',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/request/index.vue"),
    },
    {
        path: "/UseRequestDetils",
        meta: {
            title: 'UseRequestDetils',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/requestDetils/index.vue"),
    },
    {
        path: "/UseRequestCommunity",
        meta: {
            title: 'UseRequestCommunity',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/requestCommunity/index.vue"),
    },
    {
        path: "/UseRequestCommunity/Detils",
        meta: {
            title: 'UseRequestCommunityUse',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/requestCommunityUse/index.vue"),
    },
    {
        path: "/UseRequestCommunity/UseSendMyRequest",
        meta: {
            title: 'UseSendMyRequest',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/sendMyRequest/index.vue"),
    },
    {
        path: "/UseCustomizeOrderEnder",
        meta: {
            title: 'UseCustomizeOrderEnder',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/customizeOrderEnder/index.vue"),
    },
    {
        path: "/UseCustomizeOrder",
        meta: {
            title: 'UseCustomizeOrder',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/customizeOrder/index.vue"),
    },
    {
        path: "/UseCustomizeOrderTime",
        meta: {
            title: 'UseCustomizeOrder',
            keepAlive: true,
        },
        component: () => import("@/view/home/customizeOrderTime/index.vue"),
    },
    {
        path: "/UseMyOrder",
        meta: {
            title: 'UseMyOrder',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/myOrder/index.vue"),
    },
    {
        path: "/UseMyOrderDetails",
        meta: {
            title: 'UseMyOrderDetails',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/myOrderDetails/index.vue"),
    },
    {
        path: "/UseSelectAvailableTime",
        meta: {
            title: 'UseSelectAvailableTime',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/selectAvailableTime/index.vue"),
    },
    {
        path: "/UseOrderPayment",
        meta: {
            title: 'UseOrderPayment',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/orderPayment/index.vue"),
    },
    {
        path: "/UseSuccessfullyPaid",
        meta: {
            title: 'UseSuccessfullyPaid',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/successfullyPaid/index.vue"),
    },
    {
        path: "/Login",
        meta: {
            title: 'Login',
            keepAlive: true,
        },
        component: () => import("@/view/login/login/index.vue"),
    },
    {
        path: "/Login/Forgot",
        meta: {
            title: 'Forgot',
            keepAlive: true,
        },
        component: () => import("@/view/login/forgot/index.vue"),
    },
    {
        path: "/Login/SignUp",
        meta: {
            title: 'SignUp',
            keepAlive: true,
        },
        component: () => import("@/view/login/signUp/index.vue"),
    },
    {
        path: "/Login/VerificationCode",
        meta: {
            title: 'verificationCode',
            keepAlive: true,
        },
        component: () => import("@/view/login/verificationCode/index.vue"),
    },
    {
        path: "/Login/UpdataPassword",
        meta: {
            title: 'UpdataPassword',
            keepAlive: true,
        },
        component: () => import("@/view/login/updataPassword/index.vue"),
    },
    {
        path: "/KnowClub",
        meta: {
            title: 'KnowClub',
            keepAlive: true,
        },
        component: () => import("@/view/knowClub/index.vue"),
    },
    {
        path: "/Print",
        meta: {
            title: 'Print',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/myOrderDetails/print.vue"),
    },
    {
        path: "/KcPrint",
        meta: {
            title: 'KcPrint',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/myClubb/print.vue"),
    },
    {
        path: "/ByIndustry",
        meta: {
            title: 'ByIndustry',
            keepAlive: true,
        },
        component: () => import("@/view/byIndustry/index.vue"),
    },
    {
        path: "/KnowClub/MoreClubs",
        meta: {
            title: "/KnowClub/MoreClubs",
            keepAlive: true,
        },
        component: () => import("@/view/knowClub/moreClubs/index.vue"),
    },
    {
        path: "/KnowClub/MoreIndustry",
        meta: {
            title: "/KnowClub/MoreIndustry",
            keepAlive: true,
        },
        component: () => import("@/view/knowClub/moreInduy/index.vue"),
    },
    {
        path: "/KnowClub/MoreCount",
        meta: {
            title: "/KnowClub/MoreCount",
            keepAlive: true,
        },
        component: () => import("@/view/knowClub/moreCount/index.vue"),
    },
    {

        path: "/PersonalHomepage",
        meta: {
            title: "/PersonalHomepage",
            keepAlive: true,
        },
        component: () => import("@/view/home/profile/index.vue"),
    },
    {

        path: "/PersonalClubs",
        meta: {
            title: "/PersonalClubs",
            keepAlive: true,
        },
        component: () => import("@/view/home/profile/indexClubs.vue"),
    },
    {

        path: "/PersonalArticle",
        meta: {
            title: "/PersonalArticle",
            keepAlive: true,
        },
        component: () => import("@/view/home/profile/indexArticle.vue"),
    },
    {

        path: "/Club",
        meta: {
            title: "/Club",
            keepAlive: true,
        },
        component: () => import("@/view/home/profile/club/index.vue"),
    },
    {

        path: "/ClubJoin",
        meta: {
            title: "/ClubJoin",
            keepAlive: true,
        },
        component: () => import("@/view/home/profile/clubJoin/index.vue"),
    },
    {

        path: "/ClubDetils",
        meta: {
            title: "/ClubDetils",
            keepAlive: true,
        },
        component: () => import("@/view/home/profile/clubDetils/index.vue"),
    },
    // ------------------------------------------------knowclub卖家
    {

        path: "/KnowClubAccountSetting",
        meta: {
            title: "/KnowClubAccountSetting",
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/accountSetting/index.vue"),
    },
    {
        path: "/KnowClubMyProfile",
        meta: {
            title: 'KnowClubMyProfile',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/myProfile/index.vue"),
    },
    {
        path: "/KnowClubProfile",
        meta: {
            title: 'KnowClubProfile',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/profile/index.vue"),
    },
    {
        path: "/KnowClubMyClubb",
        meta: {
            title: 'KnowClubMyClubb',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/myClubb/index.vue"),
    },
    {
        path: "/KnowClubAreateAClub",
        meta: {
            title: 'KnowClubAreateAClub',
            keepAlive: false,
        },
        component: () => import("@/view/sellKnowClubNavTab/myClubb/createAClub/index.vue"),
    },
    {
        path: "/KnowCreateCkubDetils",
        meta: {
            title: 'KnowCreateCkubDetils',
            keepAlive: false,
        },
        component: () => import("@/view/sellKnowClubNavTab/myClubb/createCkubDetils/index.vue"),
    },
    {
        path: "/KnowCreateIcome",
        meta: {
            title: 'KnowCreateIcome',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/icome/index.vue"),
    },


    {
        path: "/KnowCreateFavorite",
        meta: {
            title: 'KnowCreateFavorite',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/favorite/index.vue"),
    },
    {
        path: "/KnowCreateClubView",
        meta: {
            title: 'KnowCreateClubView',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/clubView/index.vue"),
    },
    {
        path: "/KnowCreateArticlesView",
        meta: {
            title: 'KnowCreateArticlesView',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/articlesView/index.vue"),
    },
    {
        path: "/KnowCreateNotifications",
        meta: {
            title: 'KnowCreateNotifications',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/notifications/index.vue"),
    },
    {
        path: "/KnowCreateNotificationsSetting",
        meta: {
            title: 'KnowCreateNotificationsSetting',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/notifications/notificationsSetting/index.vue"),
    },
    // ------------------------------------------------knowclub买家
    {
        path: "/KnowClubBuyAccountSetting",
        meta: {
            title: 'KnowClubBuyAccountSetting',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/accountSetting/index.vue"),
    },
    {
        path: "/KnowClubBuyMyProfile",
        meta: {
            title: 'KnowClubBuyMyProfile',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/myProfile/index.vue"),
    },
    {
        path: "/BuyKnowUseMyProfile",
        meta: {
            title: 'BuyKnowUseMyProfile',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/profile/index.vue"),
    },
    {
        path: "/BuyUsePersonalHome",
        meta: {
            title: 'BuyUsePersonalHome',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/userinfoHome/index.vue"),
    },
    {
        path: "/BuyMyClub",
        meta: {
            title: 'BuyMyClub',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/myClubb/index.vue"),
    },
    {
        path: "/BuyFavorite",
        meta: {
            title: 'BuyFavorite',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/favorite/index.vue"),
    },
    {
        path: "/BuyClubView",
        meta: {
            title: 'BuyClubView',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/clubView/index.vue"),
    },
    {
        path: "/BuyArticlesView",
        meta: {
            title: 'BuyArticlesView',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/articlesView/index.vue"),
    },
    {
        path: "/BuyClubDetils",
        meta: {
            title: 'BuyClubDetils',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/clubDetils/index.vue"),
    },
    {
        path: "/BuyOrderPayment",
        meta: {
            title: 'BuyOrderPayment',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/orderPayment/index.vue"),
    },
    {
        path: "/BuynOtifications",
        meta: {
            title: 'BuynOtifications',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/notifications/index.vue"),
    },
    {
        path: "/BuyNotificationsSetting",
        meta: {
            title: 'BuyNotificationsSetting',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/notifications/notificationsSetting/index.vue"),
    },
    {
        path: "/BuyDeactiveAccount",
        meta: {
            title: 'BuyDeactiveAccount',
            keepAlive: true,
        },
        component: () => import("@/view/buyKnowClubNavTab/deactiveAccount/index.vue"),
    },
    {
        path: "/BuyerDeactiveAccount",
        meta: {
            title: 'BuyerDeactiveAccount',
            keepAlive: true,
        },
        component: () => import("@/view/buyerNavTab/deactiveAccount/index.vue"),
    },
    {
        path: "/SellkDeactiveAccount",
        meta: {
            title: 'SellkDeactiveAccount',
            keepAlive: true,
        },
        component: () => import("@/view/sellKnowClubNavTab/deactiveAccount/index.vue"),
    },
    {
        path: "/HelpSupportDetils",
        meta: {
            title: 'HelpSupportDetils',
            keepAlive: true,
        },
        component: () => import("@/view/navTab/helpSupport/detailss.vue"),
    },
    {
        path: "/ChatView",
        meta: {
            title: 'ChatView',
            keepAlive: true,
        },
        component: () => import("@/components/chatView/index.vue"),
    },
    {
        path: "/ChatViews",
        meta: {
            title: 'ChatViews',
            keepAlive: true,
        },
        component: () => import("@/components/chatViews/index.vue"),
    },
    {
        path: "/404",
        meta: {
            title: '404',
            keepAlive: false,
        },
        component: () => import("@/view/404/404.vue"),
    }
];

const router = createRouter({
    // 路由模式
    history: createWebHistory(),
    routes,
    scrollBehavior(to, from, savedPosition) {
        return {
            top: 0
        };
    }
});

export default router;